<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<script type="text/javascript" src="/js/jquery.min.js"></script>
<script type="text/javascript">
    $.ajax({
        url: "/getAjaxerror",
        type: "POST",
        async: false,
        success: function(data) {
            if(data.status) {
                alert("success");
            } else {
                alert("发生异常：" + data.msg);
            }
        },
        error: function (response, ajaxOptions, thrownError) {
            debugger;
            alert("error");
        }
    });
</script>
</body>
</html>